package com.qxl.forest.common.util;

import com.qxl.forest.core.config.ForestProperties;
import com.qxl.forest.util.SpringContextHolder;

/**
 * @Author: qiuxinlin
 * @Dercription: 验证码工具类
 * @Date: 2017/12/20
 */
public class CaptchaUtil {

    /**
     * 获取验证码开关
     * @return
     */
    public static Boolean getCaptchaOnOff() {
        return SpringContextHolder.getBean(ForestProperties.class).getCaptchaOpen();
    }
}